package misc;

public class MAIN extends Thread {
	public static void main(String[] args) throws InterruptedException {
		System.out.println("Welcome to threading.");
		Thread t = new Thread();
	//	Thread t = Thread.currentThread();
		System.out.println("Current Thread : " + t);
		t.start();
		t.join();

		t.setName("Aniruddha");
		System.out.println("After name change : " + t);

		t.setName("Sameer");
		System.out.println("After name change : " + t);

		
	}

	public void run() {

		System.out.println("in the run ::"+Thread.currentThread().getName());

	}

}
